package com.yuanfengerp.inventory.dao;

import com.yuanfengerp.inventory.entity.WarehouseTransfer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface IWarehouseTransferDao {
    //    条件查询
    List<WarehouseTransfer> queryWarehouseTransfer(Map<String ,Object> params);
    //    新增订单
    int addWarehouseTransfer(WarehouseTransfer warehouseTransfer);
    //    查看单条订单
    WarehouseTransfer queryWarehouseTransferById(String warehouse_document_number);
    //    修改单条订单
    int updateWarehouseTransfer(WarehouseTransfer warehouseTransfer);
    //     删除单条订单
    int deleteWarehouseTransfer(@Param("warehouse_document_number") String warehouse_document_number);
    //    单条审核通过采购订单
    int updateWarehouseTransferAgree(@Param("warehouse_document_number")String warehouse_document_number);
    //    单条审核拒绝采购订单
    int updateWarehouseTransferRefuse(@Param("warehouse_document_number") String warehouse_document_number);
    //部分收货状态
    int updateWarehouseTransferPartialReceipt(@Param("warehouse_document_number") String warehouse_document_number);
    //已收货状态
    int updateWarehouseTransferReceived(@Param("warehouse_document_number") String warehouse_document_number);
}
